package com.ylw.entity;

/**
 * 订单类
 */

import javax.persistence.*;
import java.util.Date;


@Entity
@Table(name = Order.table_name)
public class Order extends IdEntity {
    public static final String table_name = "t_order";

    @ManyToOne(fetch = FetchType.EAGER)
    @JoinColumn(name="user_id" )
    private User user;//不知道为什么这个必须写在属性上面，公司项目必须写在get方法上面，玛戈几
//    private Integer goodNum;
    private Date payTime;
    private String good;


    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

//    public Integer getGoodNum() {
//        return goodNum;
//    }
//
//    public void setGoodNum(Integer goodNum) {
//        this.goodNum = goodNum;
//    }

    public Date getPayTime() {
        return payTime;
    }

    public void setPayTime(Date payTime) {
        this.payTime = payTime;
    }

    public String getGood() {
        return good;
    }

    public void setGood(String good) {
        this.good = good;
    }
}
